/*封面*/
.hero {
  height: 100vh;
  background: url("assets/封面.jpg") no-repeat center/cover;
  animation: waterWave 20s infinite linear;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(134, 173, 173, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}


/* 打字效果 */
.typewriter {
  font-size: 2.2rem;
  font-weight: bold;
  letter-spacing: 2px;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: fadeIn 1s ease-in-out;
}

.cursor {
  display: inline-block;
  width: 1px;
  background-color: white;
  animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}


/* 浮现效果 */
.text-island-splash {
  margin-top: 1.5rem;
  font-size: 3.5rem;
  font-weight: bold;
  letter-spacing: 1.2rem;
  color: #fff;
  opacity: 0;
  animation: splashIn 2.5s ease forwards;
  animation-delay: 2.8s;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

@keyframes splashIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
    filter: blur(4px);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}


/* 箭头 */
.scroll-down {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 2rem;
  color: #fff;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes waterWave {
  0% { background-position: center top; }
  100% { background-position: center bottom; }
}

/*容器*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 标题 */
.header {
  text-align: center;
  padding: 1.5rem 0;
  background: linear-gradient(135deg, #3ea0c6, #4fdcd9);
}
header h1 {
  color: white;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 1.2px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 1);
}

/* 导航栏 */
.nav {
  height: 30px;
  background: rgb(81, 185, 211);
  box-shadow: 0 2px 8px rgba(0,0,0,0.7);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

/* 菜单栏 */
.nav-menu {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  flex-wrap: wrap;
}

/* 汉堡菜单按钮样式 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 响应式样式 */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    display: none;
    margin-top: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-header {
    justify-content: space-between;
  }
}

/* 菜单项 */
.nav-menu li a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.4rem;
  background: #32aec6;
  color:white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px; 
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 6px rgba(15, 76, 117, 0.4);
  user-select: none;
}

/* 悬停和焦点 */
.nav-menu li a:hover,
.nav-menu li a:focus {
  background: #1ebfff;
  box-shadow: 0 6px 12px rgba(30, 144, 255, 0.7);
  outline: none;
}

/*适应手机 */
.nav-toggle {
  display: none;
}
@media (max-width: 720px) {
  .nav-menu {
    flex-direction: column;
    align-items: center;
  }
  .nav-menu li a {
    width: 80vw;
    justify-content: center;
  }
  .nav-header {
    display: flex;
    justify-content: flex-end;
    padding-right: 1rem;
  }
  .nav-toggle {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    width: 30px;
    height: 22px;
    position: relative;
  }
  .nav-toggle span {
    display: block;
    height: 3px;
    background: #479cd4;
    margin-bottom: 5px;
    border-radius: 2px;
    transition: 0.3s;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}


/*页面背景*/
.main-content {
  background-image: url('assets/背景.jpg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; 
  backdrop-filter: brightness(1.05) blur(2px);
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.main-content::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7); /* 半透明白色罩层，让文字不被遮 */
  z-index: -1;
}


/*容器*/
.section-box {
  background: #fdfdfd;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.3s ease;
}

.section-box:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.9);
}

/*轮盘效果*/
.section {
  padding: 2rem 1rem;
  text-align: center;
}

.desc {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.gallery-item {
  flex: 0 0 auto;
  width: 250px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 0.9rem;
  padding: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

/* 悬停 */
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item:hover .caption {
  opacity: 1;
}

/* 滚动条 */
.gallery-scroll::-webkit-scrollbar {
  height: 8px;
}
.gallery-scroll::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
.gallery-scroll::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 精彩活动卡片*/
.info-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.flip-card {
  background-color: transparent;
  width: 240px;
  height: 260px;
  perspective: 1000px;
  margin: 1rem;
  position: relative;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: #f0f9ff;
}

.flip-front {
  z-index: 2;
}

.flip-back {
  transform: rotateY(180deg);
  background: #d0f0ff;
  color: #333;
}

.flip-back .price {
  margin-top: 1rem;
  font-weight: bold;
  color: #0077b6;
}

/*票根效果*/
.ticket-card {
  display: flex;
  background: #fff;
  border: 2px dashed #ccc;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticket-card::before,
.ticket-card::after {
  content: '';
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: -10px;
}

.ticket-card::before {
  top: 20px;
}
.ticket-card::after {
  bottom: 20px;
}

.ticket-content {
  flex: 3;
  padding: 1rem 1.5rem;
  border-right: 2px dashed #ccc;
}

.ticket-content h3 {
  color: #289dba;
  margin-bottom: 0.5rem;
}

.ticket-content p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.5rem;
}

.ticket-content ul {
  padding-left: 1rem;
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.ticket-price {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #289dba;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

.ticket-price span {
  transform: rotate(-5deg);
}

.ticket-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* 按钮 */
.btn {
  background-color: #46afd8;
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(70, 175, 216, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  background-color: #289dba;
  box-shadow: 0 8px 20px rgba(40, 157, 186, 0.8);
}

/*补充*/
.tilt-card {
  max-height: 250px;
  background: linear-gradient(135deg, #e1f5fe, #e8eaf6);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  will-change: transform;
}

/*旅游路线图*/
.timeline-vertical {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
  border-left: 4px solid #46afd8;
}

.timeline-item {
  position: relative;
  margin: 2rem 0;
  width: 100%;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.8rem;
  width: 1rem;
  height: 1rem;
  background-color: #46afd8;
  border-radius: 50%;
  border: 2px solid white;
}

.timeline-content {
  background: #f0f9ff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  transform: translateX(100px);
}

.reveal.left .timeline-content {
  transform: translateX(-100px);
}

.reveal.visible .timeline-content {
  opacity: 1;
  transform: translateX(0);
}

.footer {
  background: linear-gradient(to right, #54b5c9, #27c6db); /* 柔和蓝绿色背景 */
  padding: 2rem 0;
  text-align: center;
  font-size: 0.95rem;
  color: #333;
  border-top: 2px solid #46afd8;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}

.footer p {
  margin: 0.4rem 0;
  color: #555;
}


